import { request } from '@pkg/request/src';

enum Api {
  page = '/electronicGold/page',
  exportExcel = '/electronicGold/exportExcel',
}

export const electronicGoldPage = (params) =>
  request.get(
    { url: Api.page, params: params },
    {
      errorMessageMode: 'none',
      successMessageMode: 'none',
    },
  );

export const exportExcel = (params) =>
  request.get(
    {
      url: Api.exportExcel,
      params: params,
      responseType: 'blob',
    },
    { isTransformResponse: false },
  );
